<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../org/angular.min.js"></script>
    <script src="../org/jquery.min.js"></script>
</head>
<body ng-app="hd">
<div ng-controller="ctrl">
    <form method="post" action="4.php">
        标题<input type="text" ng-model="field.title"><br/>
        点击数<input type="text" ng-model="field.click"><br/>
        <textarea name="data" hidden></textarea>
        <input type="submit">
    </form>
</div>
<script>
    var m = angular.module('hd', []);
    m.controller('ctrl', ['$scope', function ($scope) {
        $scope.field = {title: '后盾人', click: 100, content:'后盾网 我那噶啥是打发点'};

        /*与jquery混用，使用jquery提交数据*/
        $('form').submit(function () {
            $('[name="data"]').val(angular.toJson($scope.field));
        });
    }]);

</script>
</body>
</html>